<div class="centreForm">
    <c:choose>
        <c:when test="${sessionScope.loggedIn}">
            <p>You are logged in to system.</p>
        </c:when>
        <c:otherwise>
            <h1>Login</h1>
            <form method="post" action="<c:url value='/login'/>" >
                <fieldset>
                    <label for="username">Username:</label><input type="text" name="username" value="" id="username" /><br />
                    <script type="text/javascript">$("#username").focus();</script>
                    <label for="password">Password:</label><input type="password" name="password" value="" /><br />
                    <input type="submit" value="Login" class="submit" />
                </fieldset>
            </form>
        </c:otherwise>
    </c:choose>
    
    
</div>